package com.dure.commonlib.util;

import android.content.Context;
import android.telephony.TelephonyManager;

/**
 * Created by leix on 13/01/2017.
 */

public class DeviceUtil {

    public static String getDeviceId(Context context) {
        TelephonyManager telephonyManager =
                (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);
        String deviceId = telephonyManager.getDeviceId();
        return deviceId;
    }
}
